package com.pss.order.service.openFeign;

import com.pss.order.service.openFeign.impl.ProductFeignServiceImpl;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "product-server",path = "/pdt"
//        , fallback = ProductFeignServiceImpl.class  fallback会导致seata事务处理失效
)
public interface ProductFeignService {

    @PostMapping("/productInfo")
    String productInfo(@RequestParam("pId") Integer pId);

}
